package com.ljx.funchat.chat.service;

import com.ljx.funchat.chat.domain.entity.Message;
import com.ljx.funchat.chat.domain.vo.req.ChatMessagePageReq;
import com.ljx.funchat.chat.domain.vo.req.ChatMessageReadReq;
import com.ljx.funchat.chat.domain.vo.req.ChatMessageReq;
import com.ljx.funchat.chat.domain.vo.resp.ChatMessageResp;
import com.ljx.funchat.common.domain.vo.resp.CursorPageBaseResp;
import com.ljx.funchat.websocket.domain.vo.resp.WSMessage;

public interface ChatService {

    ChatMessageResp sendMsg(Long uid, ChatMessageReq chatMessageReq);

    ChatMessageResp getMsgResp(Message message, Long receiveUid, Long uid);

    CursorPageBaseResp<ChatMessageResp> getChatMsgPage(Long uid, ChatMessagePageReq req);

    void readMsg(Long uid, ChatMessageReadReq readReq);

}
